#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

int main() {
	string a,b;
	cin>>a>>b;
	int i,j;
	
	i=a.length()-1;
	j=b.length()-1;
	if(i<j){
		swap(a,b);
		swap(i,j);
	}   
	string result="";
	int carry=0;
	while(i>=0){
		int ia=a[i]-'0';
		int ib;
		if(j>=0) ib=b[j]-'0';
		else ib=0;
		int sum=ia+ib+carry;
		carry=sum/10;
		result+=sum%10+'0';
		i--;
		j--;	
	}
	if(carry) result+=carry+'0';
	reverse(result.begin(),result.end());
	cout<<result<<endl;
    return 0;
}

